package com.lagou.edu.service;


import com.lagou.edu.dao.RepositoryDao;
import com.lagou.edu.pojo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleService {


    @Autowired
    private RepositoryDao repositoryDao;
    public List<Article> findAll(){
        List<Article> articleList = repositoryDao.findAll();
        return articleList;
    }

}
